#!/usr/bin/python
# -*- coding: utf-8 -*-

import sys
from multiprocessing.connection import Client


def myprint(obj):
    sys.stdout.write(str(obj) + '\n')


conn = Client(('127.0.0.1', 15000), authkey=b'12345')

conn.send((3, 4))
r = conn.recv()
myprint(r)

conn.send(('hello', 'world'))
r = conn.recv()
myprint(r)

conn.close()
